﻿using System;
using System.Collections.Generic;

namespace MatthiWare.PortChecker
{
    [Serializable]
    public class Port
    {
        public UInt16 PortNumber { get; set; }
        public String Name { get; set; }
        public String Description { get; set; }

        public Port()
            : this(0, "unknown", "Unassigned")
        {

        }

        public Port(UInt16 port, String name, String description)
        {
            PortNumber = port;
            Name = name;
            Description = description;
        }

        public override string ToString()
        {
            return String.Format("Port {0} {1}: ", PortNumber, Name);
        }
    }
}
